package com.jingdianjichi.subject.domain.convert;

import com.jingdianjichi.subject.domain.entity.SubjectAnswerBO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {


    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    List<SubjectInfoBO> convertListInfoToBo (List<SubjectInfo> subjectInfos);

    SubjectInfo convertBoToInfo (SubjectInfoBO subjectInfoBO);

//    SubjectAnswerBO convertAnswer(SubjectInfoBO subjectInfoBo);

    SubjectInfoBO convertOptionBoToInfo (SubjectOptionBO subjectOptionBo, SubjectInfo subjectInfo);

}
